{include file="layout/header" title="邮件设置" /}
<div class="view-body">
    {include file="layout/menu" /}
    <div class="view-product">
        <div class="company_identify">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">
                    邮件设置
                </h6>
            </div>
            <form action="{:url('admin/Config/save',['key'=>'email'])}" class="layui-form" method="post" name="emailForm">
                <div class="basic-info-detail clearfix">
                    <div class="layui-form-item margin-left-300 margin-top-25">
                        <label class="layui-form-label width-small">
                            邮件开关
                        </label>
                        <div class="layui-input-block">
                            <input lay-skin="switch" name="open" type="checkbox" value="1">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <label class="layui-form-label width-small">
                            调试开关
                        </label>
                        <div class="layui-input-block">
                            <input lay-skin="switch" name="debug" type="checkbox" value="1">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <label class="layui-form-label width-small">
                            SMTP服务器
                        </label>
                        <div class="layui-input-inline" style="width:350px;">
                            <input class="layui-input" lay-verify="required" name="host" type="text">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <label class="layui-form-label width-small">
                            端口
                        </label>
                        <div class="layui-input-inline" style="width:350px;">
                            <input class="layui-input" lay-verify="required" name="port" type="text">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <label class="layui-form-label width-small">
                            SMTP用户名
                        </label>
                        <div class="layui-input-inline" style="width:350px;">
                            <input class="layui-input" lay-verify="required" name="user" type="text">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <label class="layui-form-label width-small">
                            SMTP密码
                        </label>
                        <div class="layui-input-inline" style="width:350px;">
                            <input class="layui-input" lay-verify="required" name="pass" type="text">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <label class="layui-form-label width-small">
                            发件人
                        </label>
                        <div class="layui-input-inline" style="width:350px;">
                            <input class="layui-input" name="from" lay-verify="required" type="text">
                            </input>
                        </div>
                    </div>
                    <div class="layui-form-item margin-left-300">
                        <div class="layui-input-block margin-left-100">
                            <button class="layui-btn layui-btn-normal" lay-filter="smsYes" lay-submit="">
                                确定
                            </button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    var formObj = new Form('emailForm');
    	formObj.init({$email});

    layui.use(['form','upload','layer'], function(){
        var layer = layui.layer;
        var $ = layui.jquery;
    });
</script>
{include file="layout/footer" /}
